package cn.edu.ctbu.demo01.dao;

import cn.edu.ctbu.demo01.entity.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends JpaRepository<Student, Integer> {

    public List<Student> findBySno(String sno);

    //新增获取批量id的函数
    void deleteAllByIdInBatch(Iterable<Integer> ids);


}
